<?php $this->load->view('templates/header') ?>
<?php $this->load->view('templates/nav') ?>
<div class="container">
<br>
<br>
<br>
<br>
<div class="row">
<?php if (isset($sidebar_list)): ?>
<?php $data['sidebar_list']=$sidebar_list;$this->load->view('templates/sidebar',$data) ?>
<?php endif; ?>
<div class="col-md-9 col-lg-9">

    <div class="row">
    <ol class="breadcrumb">
    <li><a href="#">Home</a></li>
    <li class="active" id="restartFlag">
    <?php if (isset($restart_flag)): ?>
    <?php echo $restart_flag; ?>
    <?php endif; ?>
    </li>
    </ol>
    </div>
    <div class="row">
        <div class="col-sm-3 col-md-3">
            <select id="systemSelect" style="width:150pt">
            <?php if (isset($restart_list) ): ?>
            <?php foreach($restart_list as $item): ?>           
            <option><?php echo $item;?></option>
            <?php endforeach; ?>
            <?php endif; ?>
            </select>
        </div>
        <div class="col-sm-3 col-md-3">
            <button class="btn btn-primary" id="btnSystemRestart">重启</button>
        </div>    

    </div>
    <?php if (isset($error_info) && $error_info): ?>
    <div class="panel panel-danger">
      <div class="panel-heading">Warning Information</div>      
      <div class="panel-body">
      <?php foreach($error_info as $error): ?>
        <p><?php echo $error;?></p>
      <?php endforeach;?>
      </div>
    </div>
    <?php endif;?>
    <div class="row">
        <div class="col-sm-12 col-md-12">
            <div class="panel panel-primary">
                <div class="panel-heading">
                <h3 class="panel-title">Command Execute Result:<h3>
                </div>
                <div class="panel-body">                 
                    <pre id="load">                
                    </pre>
                </div>
            </div>
        </div>
    </div>
</div><!-- End col-md-9 col-lg-9 -->
</div><!-- End row -->
</div><!-- End container -->
<script src="<?php echo base_url() ?>assets/js/system.js"></script>
<?php $this->load->view('templates/footer') ?>
